.class Lcom/nemustech/regina/WorkspaceBrowser$5;
.super Ljava/lang/Object;
.source "WorkspaceBrowser.java"

# interfaces
.implements Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/nemustech/regina/WorkspaceBrowser;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/nemustech/regina/WorkspaceBrowser;


# direct methods
.method constructor <init>(Lcom/nemustech/regina/WorkspaceBrowser;)V
    .locals 0
    .parameter

    .prologue
    .line 481
    iput-object p1, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onEffectFinish(Lcom/nemustech/tiffany/world/TFObject;)V
    .locals 8
    .parameter "object"

    .prologue
    const/4 v5, 0x1

    const/4 v1, 0x0

    const/4 v4, 0x0

    .line 485
    const-string v0, "WorkspaceBrowser"

    const-string v2, "return to origin finished"

    invoke-static {v0, v2, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 487
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0, v4}, Lcom/nemustech/regina/WorkspaceBrowser;->access$202(Lcom/nemustech/regina/WorkspaceBrowser;I)I

    .line 490
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/WorkspaceBrowser;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 491
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-virtual {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->getWorld()Lcom/nemustech/tiffany/world/TFWorld;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/tiffany/world/TFWorld;->removeReflectingFloor()V

    .line 492
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/WorkspaceBrowser;->setVisibility(Z)V

    .line 493
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/WorkspaceBrowser;->setNamePanelVisibility(Z)V

    .line 496
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-virtual {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->getHeadItemIndex()I

    move-result v6

    .line 497
    .local v6, headItemIndex:I
    const-string v0, "WorkspaceBrowser"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "final head index:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v6}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v0, v2, v4}, Lcom/nemustech/regina/RLog;->d(Ljava/lang/String;Ljava/lang/String;Z)I

    .line 498
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$600(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/ElementLocator;->distributeWorkspaceViews(I)V

    .line 499
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$600(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/ElementLocator;

    move-result-object v0

    invoke-virtual {v0, v6}, Lcom/nemustech/regina/ElementLocator;->getWorkspace(I)Lcom/nemustech/regina/RGWorkspace;

    move-result-object v7

    .line 500
    .local v7, workspace:Lcom/nemustech/regina/RGWorkspace;
    invoke-virtual {v7, v4}, Lcom/nemustech/regina/RGWorkspace;->convertToAnimationObjects(Z)V

    .line 502
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/nemustech/regina/RGWorkspaceHolder;->setVisibility(Z)V

    .line 503
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v6, v4}, Lcom/nemustech/regina/RGWorkspaceHolder;->setHeadItemIndex(IZ)V

    .line 504
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 505
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v5}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 506
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    const/4 v2, 0x2

    invoke-virtual {v0, v2}, Lcom/nemustech/regina/RGWorkspaceHolder;->getObjectInSlot(I)Lcom/nemustech/tiffany/world/TFObject;

    move-result-object v0

    invoke-virtual {v0, v4}, Lcom/nemustech/tiffany/world/TFObject;->setVisibility(Z)V

    .line 507
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    const v2, -0x42333333

    invoke-virtual {v0, v1, v1, v2}, Lcom/nemustech/regina/RGWorkspaceHolder;->locate(FFF)V

    .line 508
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    const-wide/16 v4, 0xc8

    move v2, v1

    move v3, v1

    invoke-virtual/range {v0 .. v5}, Lcom/nemustech/regina/RGWorkspaceHolder;->move(FFFJ)V

    .line 509
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nemustech/regina/RGWorkspaceHolder;->lock()V

    .line 511
    iget-object v0, p0, Lcom/nemustech/regina/WorkspaceBrowser$5;->this$0:Lcom/nemustech/regina/WorkspaceBrowser;

    invoke-static {v0}, Lcom/nemustech/regina/WorkspaceBrowser;->access$700(Lcom/nemustech/regina/WorkspaceBrowser;)Lcom/nemustech/regina/RGWorkspaceHolder;

    move-result-object v0

    new-instance v1, Lcom/nemustech/regina/WorkspaceBrowser$5$1;

    invoke-direct {v1, p0, v7}, Lcom/nemustech/regina/WorkspaceBrowser$5$1;-><init>(Lcom/nemustech/regina/WorkspaceBrowser$5;Lcom/nemustech/regina/RGWorkspace;)V

    invoke-virtual {v0, v1}, Lcom/nemustech/regina/RGWorkspaceHolder;->setEffectFinishListener(Lcom/nemustech/tiffany/world/TFWorld$OnEffectFinishListener;)V

    .line 541
    return-void
.end method
